export default {
	data() {
		return {

		};
	},
	methods: {
		toAgreement(type) {
			this.$navTo('pages/mine/agreement/agreement', {
				type: type
			})
		},
		// 退出登录
		onLoginOut() {
			this.$showModal({
				title: "提示",
				content: "确认退出登录",
				success: res => {
					if (res.confirm) {
						this.$store.clear()
						this.$reLaunchTo('pages/login/login')
					} else if (res.cancel) {
						console.log('用户点击取消');
					}
				}
			});
		},
	}
}
